// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '仓库设置',
        name: 'Warehouse',
        url: "/Warehouse/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"WarehouseCode":"","WarehouseName":"","Leader":"","Area":"","Position":"","Descs":"","WarehouseImg":""};
    const editFormOptions = [[{"title":"仓库编码","required":true,"field":"WarehouseCode","type":"text"}],
                              [{"title":"仓库名称","required":true,"field":"WarehouseName","type":"text"}],
                              [{"title":"负责人","required":true,"field":"Leader","type":"text"}],
                              [{"title":"面积","required":true,"field":"Area","type":"number"}],
                              [{"title":"位置","required":true,"field":"Position","type":"textarea"}],
                              [{"title":"备注","required":true,"field":"Descs","type":"textarea"}],
                              [{"title":"仓库图片","required":true,"field":"WarehouseImg","type":"img"}]];
    const searchFormFields = {"WarehouseCode":"","WarehouseName":""};
    const searchFormOptions = [[{"title":"仓库编码","field":"WarehouseCode","type":"like"},{"title":"仓库名称","field":"WarehouseName","type":"like"}]];
    const columns = [{field:'Id',title:'主键id',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'WarehouseCode',title:'仓库编码',type:'string',width:110,require:true,align:'left'},
                       {field:'WarehouseName',title:'仓库名称',type:'string',width:110,require:true,align:'left'},
                       {field:'Leader',title:'负责人',type:'string',width:110,require:true,align:'left'},
                       {field:'Area',title:'面积',type:'int',width:110,require:true,align:'left'},
                       {field:'Position',title:'位置',type:'string',width:110,require:true,align:'left'},
                       {field:'WarehouseImg',title:'仓库图片',type:'img',width:220,require:true,align:'left'},
                       {field:'Descs',title:'备注',type:'string',width:220,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}